const express = require( 'express' );
const router = express.Router();
const information = require( "../../../controllers/information.controller" );
/**
 * 设置个人信息
 * @route POST /api/private/information/setInformation
 * @group 个人信息管理 - list of information
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of information info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/setInformation", information.setInformation );

/**
 * 获取个人信息
 * @route POST /api/private/information/getInformation
 * @group 个人信息管理 - list of information
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of information info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */

router.post( "/getInformation", information.getInfo );
module.exports = router;